package com.lebang.example;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class VideoCollectionRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public VideoCollectionRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(LocalDateTime value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(LocalDateTime value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(LocalDateTime value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(LocalDateTime value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<LocalDateTime> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<LocalDateTime> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(LocalDateTime value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(LocalDateTime value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(LocalDateTime value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(LocalDateTime value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<LocalDateTime> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<LocalDateTime> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andHasDeletedIsNull() {
            addCriterion("has_deleted is null");
            return (Criteria) this;
        }

        public Criteria andHasDeletedIsNotNull() {
            addCriterion("has_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andHasDeletedEqualTo(Integer value) {
            addCriterion("has_deleted =", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotEqualTo(Integer value) {
            addCriterion("has_deleted <>", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedGreaterThan(Integer value) {
            addCriterion("has_deleted >", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("has_deleted >=", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedLessThan(Integer value) {
            addCriterion("has_deleted <", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("has_deleted <=", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedIn(List<Integer> values) {
            addCriterion("has_deleted in", values, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotIn(List<Integer> values) {
            addCriterion("has_deleted not in", values, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedBetween(Integer value1, Integer value2) {
            addCriterion("has_deleted between", value1, value2, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("has_deleted not between", value1, value2, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(String value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(String value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(String value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(String value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(String value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(String value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLike(String value) {
            addCriterion("member_id like", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotLike(String value) {
            addCriterion("member_id not like", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<String> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<String> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(String value1, String value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(String value1, String value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconIsNull() {
            addCriterion("m_author_icon is null");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconIsNotNull() {
            addCriterion("m_author_icon is not null");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconEqualTo(String value) {
            addCriterion("m_author_icon =", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconNotEqualTo(String value) {
            addCriterion("m_author_icon <>", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconGreaterThan(String value) {
            addCriterion("m_author_icon >", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconGreaterThanOrEqualTo(String value) {
            addCriterion("m_author_icon >=", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconLessThan(String value) {
            addCriterion("m_author_icon <", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconLessThanOrEqualTo(String value) {
            addCriterion("m_author_icon <=", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconLike(String value) {
            addCriterion("m_author_icon like", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconNotLike(String value) {
            addCriterion("m_author_icon not like", value, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconIn(List<String> values) {
            addCriterion("m_author_icon in", values, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconNotIn(List<String> values) {
            addCriterion("m_author_icon not in", values, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconBetween(String value1, String value2) {
            addCriterion("m_author_icon between", value1, value2, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIconNotBetween(String value1, String value2) {
            addCriterion("m_author_icon not between", value1, value2, "mAuthorIcon");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdIsNull() {
            addCriterion("m_author_id is null");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdIsNotNull() {
            addCriterion("m_author_id is not null");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdEqualTo(Long value) {
            addCriterion("m_author_id =", value, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdNotEqualTo(Long value) {
            addCriterion("m_author_id <>", value, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdGreaterThan(Long value) {
            addCriterion("m_author_id >", value, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdGreaterThanOrEqualTo(Long value) {
            addCriterion("m_author_id >=", value, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdLessThan(Long value) {
            addCriterion("m_author_id <", value, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdLessThanOrEqualTo(Long value) {
            addCriterion("m_author_id <=", value, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdIn(List<Long> values) {
            addCriterion("m_author_id in", values, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdNotIn(List<Long> values) {
            addCriterion("m_author_id not in", values, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdBetween(Long value1, Long value2) {
            addCriterion("m_author_id between", value1, value2, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorIdNotBetween(Long value1, Long value2) {
            addCriterion("m_author_id not between", value1, value2, "mAuthorId");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameIsNull() {
            addCriterion("m_author_name is null");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameIsNotNull() {
            addCriterion("m_author_name is not null");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameEqualTo(String value) {
            addCriterion("m_author_name =", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameNotEqualTo(String value) {
            addCriterion("m_author_name <>", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameGreaterThan(String value) {
            addCriterion("m_author_name >", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameGreaterThanOrEqualTo(String value) {
            addCriterion("m_author_name >=", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameLessThan(String value) {
            addCriterion("m_author_name <", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameLessThanOrEqualTo(String value) {
            addCriterion("m_author_name <=", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameLike(String value) {
            addCriterion("m_author_name like", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameNotLike(String value) {
            addCriterion("m_author_name not like", value, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameIn(List<String> values) {
            addCriterion("m_author_name in", values, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameNotIn(List<String> values) {
            addCriterion("m_author_name not in", values, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameBetween(String value1, String value2) {
            addCriterion("m_author_name between", value1, value2, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMAuthorNameNotBetween(String value1, String value2) {
            addCriterion("m_author_name not between", value1, value2, "mAuthorName");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdIsNull() {
            addCriterion("m_current_photo_id is null");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdIsNotNull() {
            addCriterion("m_current_photo_id is not null");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdEqualTo(Long value) {
            addCriterion("m_current_photo_id =", value, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdNotEqualTo(Long value) {
            addCriterion("m_current_photo_id <>", value, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdGreaterThan(Long value) {
            addCriterion("m_current_photo_id >", value, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("m_current_photo_id >=", value, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdLessThan(Long value) {
            addCriterion("m_current_photo_id <", value, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdLessThanOrEqualTo(Long value) {
            addCriterion("m_current_photo_id <=", value, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdIn(List<Long> values) {
            addCriterion("m_current_photo_id in", values, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdNotIn(List<Long> values) {
            addCriterion("m_current_photo_id not in", values, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdBetween(Long value1, Long value2) {
            addCriterion("m_current_photo_id between", value1, value2, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMCurrentPhotoIdNotBetween(Long value1, Long value2) {
            addCriterion("m_current_photo_id not between", value1, value2, "mCurrentPhotoId");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneIsNull() {
            addCriterion("m_entry_scene is null");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneIsNotNull() {
            addCriterion("m_entry_scene is not null");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneEqualTo(Long value) {
            addCriterion("m_entry_scene =", value, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneNotEqualTo(Long value) {
            addCriterion("m_entry_scene <>", value, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneGreaterThan(Long value) {
            addCriterion("m_entry_scene >", value, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneGreaterThanOrEqualTo(Long value) {
            addCriterion("m_entry_scene >=", value, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneLessThan(Long value) {
            addCriterion("m_entry_scene <", value, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneLessThanOrEqualTo(Long value) {
            addCriterion("m_entry_scene <=", value, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneIn(List<Long> values) {
            addCriterion("m_entry_scene in", values, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneNotIn(List<Long> values) {
            addCriterion("m_entry_scene not in", values, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneBetween(Long value1, Long value2) {
            addCriterion("m_entry_scene between", value1, value2, "mEntryScene");
            return (Criteria) this;
        }

        public Criteria andMEntrySceneNotBetween(Long value1, Long value2) {
            addCriterion("m_entry_scene not between", value1, value2, "mEntryScene");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}